/* 
 rem 实现屏幕适配的流程
 1 引入 淘宝库 flexible.js   
 2 拿出公式 来计算  

    手机屏幕  /  设计稿   =  手机中div /  设计稿的div

    手机中div =  手机屏幕  /  设计稿  *  设计稿的div 

             =   10rem  /  750 * ???

  
 3 网页中需要动态变化的 单位 px ->  rem    即可

 */
body {
  background-color: #f2f2f2;
  padding-bottom: 0.73333333rem;
}
/* 顶部搜索 */
.top_search {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f2f2f2;
}
.top_search .search {
  height: 85px;
  display: flex;
}
.top_search .search > a {
  width: 105px;
  background-color: aqua;
}
.top_search .search .logo {
  background: url(../imgs/logo.png) no-repeat center center / 38px 25px;
}
.top_search .search .login {
  background: url(../imgs/mine.png) no-repeat center center / 42px 42px;
}
.top_search .search .search_input {
  flex: 1;
  padding: 12px 0;
}
.top_search .search .search_input input {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 5px;
}
.top_search .nav {
  display: flex;
  height: 0.85333333rem;
}
.top_search .nav a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.34666667rem;
  color: #666;
}
.banner {
  position: relative;
}
.banner ul {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: 55px;
  display: flex;
  justify-content: space-between;
}
.banner ul li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
}
.banner ul .active {
  opacity: 1;
}
.category {
  display: flex;
  flex-wrap: wrap;
}
.category li {
  width: 20%;
}
.goods_show {
  border-top: 8px solid #ccc;
  border-bottom: 8px solid #ccc;
}
.goods_show a {
  float: left;
  width: 50%;
}
.goods_show a:nth-child(1) {
  border-right: 1px solid #fff;
}
.goods_show a:nth-child(2) {
  border-bottom: 2px solid #fff;
}
.goods_show a:nth-last-child(-n + 2) {
  border-left: 1px solid #fff;
}
footer {
  display: flex;
  height: 0.73333333rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
}
footer a {
  flex: 1;
  font-size: 0.21333333rem;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
footer a img {
  width: 0.4rem;
}
